package day02

object WhileTest {
  def main(args: Array[String]): Unit = {

    var a:Int = 10

    while(a >= 1 ){
      println("this is a while a loop: " + a)
      a-=1
    }
  }
}

/**
 * 具体打印的结果为:
 * this is a while a loop: 10
 * this is a while a loop: 9
 * this is a while a loop: 8
 * this is a while a loop: 7
 * this is a while a loop: 6
 * this is a while a loop: 5
 * this is a while a loop: 4
 * this is a while a loop: 3
 * this is a while a loop: 2
 * this is a while a loop: 1
 */